﻿using DeZhen.Core.Template.Domain.Entity.TableEntity;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace DeZhen.Core.Template.Domain.IRepository
{
    public interface IUserRepository
    {
        public Task<List<UserInfo>> GetUserInfoFromDataBaseAsync();
        public Task<int> CreateUserInfoToDataBase(UserInfo entity);

        public Task<UserInfo> GetUserInfoFromRedisAsync(String key);
        public Task<bool> CreateUserInfoToRedis(String key, UserInfo entity);
    }
}
